/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

/**
 *
 * @author percynguyen92
 */
public class User
{
    private Integer mSSV;
    private String hoTen;
    private String lop;

    public User() {
    }

    public User(Integer mSSV, String hoTen) {
        this.mSSV = mSSV;
        this.hoTen = hoTen;
    }

    public Integer getMaMH() {
        return mSSV;
    }

    public void setMaMH(Integer mSSV) {
        this.mSSV = mSSV;
    }

    public String getTen() {
        return hoTen;
    }

    public void setTen(String hoTen) {
        this.hoTen = hoTen;
    }
    
    /**
     * @return the lop
     */
    public String getLop() {
        return lop;
    }

    /**
     * @param lop the lop to set
     */
    public void setLop(String lop) {
        this.lop = lop;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (mSSV != null ? mSSV.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) 
    {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof User)) 
        {
            return false;
        }
        User other = (User) object;
        if ((this.mSSV == null && other.mSSV != null) || (this.mSSV != null && !this.mSSV.equals(other.mSSV)) || (this.lop != null && !this.lop.equals(other.lop))) 
        {
            return false;
        }
        return true;
    }

    @Override
    public String toString() 
    {
        return "Model.User[ mSSV=" + mSSV + " ]";
    }
}
